home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
qbbs
/
msgxit10.zip
/
MSGEXIT.DOC
next >
Wrap
Text File
|
1989-04-01
|
1KB
|
36 lines
MsgExit v1.00, by Bill Fenner, 1:129/87
MsgExit opens MSGINFO.BBS and reads your high message number. If you have
over 30,000 messages (or more than the command-line parameter specifies)
it exits with errorlevel 1, otherwise it exits with errorlevel 0. You
might want to use something like
msgexit
if errorlevel 1 then msgpack -a -b -r
to renumber your message file when the numbers get too high. Or, with a
more complex example, using SizeExit (another program I wrote) to run
msgpack only once based on size or need to renumber.
set r=
msgexit
if errorlevel 1 then set r=-r
sizeexit
if errorlevel 8 then goto maint
if #%r%==# then goto exit
goto pack
:maint
msgutils ...
.
.
.
:pack
msgpack -a -b %r%
the %r% is null when you don't need to repack, and is -r when you do.
(note: I just came up with this batch file segment, it hasn't been tested.)
This program is public domain. Do what you will, just don't call it your
own. Get more info by running msgexit with two or more garbage parameters.